package news.service.impl;

import news.dao.AdminDao;
import news.dao.impl.AdminDaoImpl;
import news.entity.Admin;
import news.service.AdminService;

public class AdminServiceImpl implements AdminService {

	private AdminDao ad = new AdminDaoImpl();
	@Override
	public boolean login(Admin admin) {
		boolean yOn = false;
		if(ad.findAdminByLogin(admin) > 0){
			yOn = true;
		}
		return yOn;
	}

}
